package com.firebird.app.fekpsl.mvp.me

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by chenxz on 2018/6/3.
 */
class AreaPresenter : BasePresenter<AreaContract.Model, AreaContract.View>(), AreaContract.Presenter {

    override fun createModel(): AreaContract.Model? = AreaModel()

    override fun updateArea(userUuid: String, area: String) {
        mModel?.updateArea(userUuid, area)?.ss(mModel, mView) {
            mView?.updateAreaSuccess(success = true)
        }
    }
}